import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'

// 表单校验
export const rules = reactive({
  partyName: [required],
  partyCard: [required],
  applicant: [required],
  applicantPhone: [required],
  status: [required],
})

// CrudSchema https://doc.iocoder.cn/vue3/crud-schema/
const crudSchemas = reactive<CrudSchema[]>([
  {
    label: '编号',
    field: 'id',
    isForm: false,
  },
  {
    label: '名称',
    field: 'nickname',
    isSearch: true
    
  },
  {
    label: '操作',
    field: 'action',
    isForm: false,
    table:{
      width:"200px"
    }
  }
])

export const { allSchemas } = useCrudSchemas(crudSchemas)
